package com.mapbased.wfw.bind;

import com.mapbased.wfw.*;

/**
 * <p>Title: </p>
 *
 * <p>Description:same with requestBinding but except fetch value directly </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: mapbased.com</p>
 *
 * @author chy(Baily)
 * @version 1.0
 */
public class VariableBinding
     extends AbstractBinding
{

   // private String attributeName;
   public VariableBinding(String exp)
   {
       super(exp);
       //   this.attributeName=attributeName;
   }



    /**
     * getValue
     *
     * @param context RenderContext
     * @return Object
     * @todo Implement this com.mapbased.wfw.Binding method
     */
    protected Object getDirectValue(RenderContext context)
    {
        return context.getRequestMap().get(this.attributeName);
    }

}
